const { connection } = require('../../../model/database')
module.exports = (req, res) => {
    var sql = `delete from link where id =  ${req.body.id};`
    // 发送
    connection.query(sql, (error, reslut) => {
        if (error) {
            res.status(400).send('错误')
            return
        }
        res.status(200).send('删除成功')
    })
}